package br.com.obardavez.util;

import java.io.Serializable;

import br.com.obardavez.util.impl.NumberUtilImpl;

import com.google.inject.ImplementedBy;

@ImplementedBy(NumberUtilImpl.class)
public interface NumberUtil extends Serializable {

	/**
	 * Verifica se o caracter informado eh numerico
	 * 
	 * @param digit
	 *            Digito que sera validado
	 * @return Boolea que indica se o digito informado representa um numero
	 */
	Boolean isNumber(String textNumber);

	String format(Number number);

	String format(Number number, String pattern);
	
	String zerosEsquerda(Number number, int qteZeros);

	String format(Number number, Integer maximumFractionDigits);

	String format(Number number, Integer maximumFractionDigits,
			Boolean groupingUsed);

}